// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// https://github.com/kartsims/vue-cordova
import Vue from 'vue';
import Vuex from 'vuex';
import VueRx from 'vue-rx';
import VueI18n from 'vue-i18n';
import 'muse-ui/dist/muse-ui.css';
import 'muse-ui/dist/theme-teal.css';
import MuseUI from 'muse-ui';
import { Indicator, Toast } from 'mint-ui';
import VueMaterial from 'vue-material';
// import 'vue-material/dist/vue-material.css';
import 'vue-material/dist/components/mdRatingBar/index.css';
import VueCordova from 'vue-cordova';
import 'video.js/dist/video-js.css';
import 'vue-video-player/src/custom-theme.css';
import VueVideoPlayer from 'vue-video-player';
import '../static/iconfont/material-icons.css';
import App from './App';
import router from './router';
import Rx from './plugins/rxjs';// rxjs全局引用插件
import D3 from './plugins/d3'; // js 绘图插件
import Axios from './plugins/axios'; // js 绘图插件
import Store from './store/index';

Vue.use(Vuex);
Vue.use(VueI18n);
Vue.use(MuseUI);
Vue.use(VueMaterial);
// Vue.use(VueMaterial.MdCore);
// Vue.use(VueMaterial.MdRatingBar);
Vue.use(VueCordova);
Vue.use(VueVideoPlayer);
Vue.use(VueRx);
Vue.use(Rx);
Vue.use(D3);
Vue.use(Axios);
Vue.use(Store);
Vue.use(Indicator);
Vue.use(Toast);

Vue.config.productionTip = false;
Vue.filter('string2integer', value => parseInt(value, 10));

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store: Store,
  template: '<App/>',
  components: { App },
});
